
import { Suspense } from 'react';
import type { FC } from "react";
import { createHashRouter, RouterProvider } from "react-router-dom";
import HomeComponent from '../pages/home'
const router = createHashRouter([
    {
        path: '/',
        element: <HomeComponent />
    }
]);
const MainRouter: FC = () => {

    return (
        <Suspense fallback={<div>Loading...</div>}>
            <RouterProvider router={router} />
        </Suspense>
    )
}

export default MainRouter;